<template>
  <div class="main">
    <p class="page-title">12强赛赛事预测大赛</p>
    <div class="race-card">
      <div class="race-item" v-for="(item,index) in raceList" :key="index">
        第{{index+1}}场：
        <div class="country">
          <span class="hostTeam">
            {{item.hostTeamName}}
            <img src alt />
          </span>:
          <span class="guestTeam">
            <img src alt />
            {{item.guestTeamName}}
          </span>
        </div>
        <span class="line"></span>
        <div class="result">
          比赛结果：
          <p></p>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      raceList: [
        {
          hostTeamName: '中国',
          guestTeamName: '日本',
        },
      ],
    }
  },
  methods: {},
}
</script>
<style  lang='stylus' scoped>
.main {
  width: 100%;
  height: 100vh;
  background-image: url('../../../assets/login_bg.svg');
  padding: 50px;

  .page-title {
    margin: 50px;
    font-size: 30px;
    font-weight: 600;
    text-align: center;
  }

  .race-card {
    .race-item {
      width: 100%;
      height: 80px;
      padding: 10px 20px;
      font-size: 26px;
      background-color: #fff;
      display: flex;
      align-items: center;

      .country {
        margin: 0 20px;
        display: flex;

        .hostTeam, .guestTeam {
          display: flex;
          align-items: center;
          margin: 0 10px;

          img {
            width: 50px;
            height: 25px;
            background-color: #ccc;
            margin: 0 10px;
          }
        }

        .hostTeam {
          color: red;
        }

        .guestTeam {
          color: blue;
        }
      }

      .line {
        width: 2px;
        height: 40px;
        background-color: #ccc;
      }
    }
  }
}
</style>
